<!--
 * @Descripttion:
 * @Author: Silence
 * @Date: 2023-06-05 20:47:22
 * @LastEditors: Silence
 * @LastEditTime: 2023-06-05 21:49:02
-->
<template>
  <div>
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="item in 4" :key="item">
        <h3>{{ item }}</h3>
      </el-carousel-item>
    </el-carousel>
    <hr />
    <my-carousel>
      <myCarouselItem v-for="item in 4" :key="item">
        <h3>{{ item }}</h3>
      </myCarouselItem>
    </my-carousel>
  </div>
</template>
<script>
import myCarousel from './carousel/my-carousel'
import myCarouselItem from './carousel/my-carousel-item.vue'
export default {
  components: {
    myCarousel,
    myCarouselItem
  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='scss'  scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  text-align: center;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
